package com.erp.sell.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.erp.common.annotation.Excel;
import com.erp.common.core.domain.BaseEntity;

/**
 * 客户管理对象 erp_customer
 *
 * @author lzx
 * @date 2025-09-02
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ErpCustomer extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 客户ID，主键 */
    @Excel(name = "客户ID")
    private Long custId;

    /** 客户名称（企业/单位等名称） */
    @Excel(name = "客户名称")
    private String custName;

    /** 客户类别 */
    @Excel(name = "客户类别")
    private String custType;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String phone;

    /** 联系人 */
    @Excel(name = "联系人")
    private String contact;

    /** 详细地址 */
    @Excel(name = "详细地址")
    private String addr;

    /** 主采类目 */
    @Excel(name = "主采类目")
    private String mainCat;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("custId", getCustId())
            .append("custName", getCustName())
            .append("custType", getCustType())
            .append("phone", getPhone())
            .append("contact", getContact())
            .append("addr", getAddr())
            .append("mainCat", getMainCat())
            .toString();
    }
}
